package Properties_test;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;


public class test {
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        properties.setProperty("brand", "Iphone11Pro Max");
        properties.setProperty("capacity", "256G");
        properties.setProperty("price", "10899");
properties.store(new FileWriter("D:\\javaeework\\javaday11_work\\src\\iphone.properties"),"注释");
    }
}
